package weibo4j.examples.account;

import lib.KeyMa;
import weibo4j.Account;
import weibo4j.Weibo;
import weibo4j.examples.oauth2.Log;
import weibo4j.model.RateLimitStatus;
import weibo4j.model.WeiboException;

public class GetAccountRateLimitStatus {

	/**
	 * @param args
	 * @throws InterruptedException 
	 */
	public static void main(String[] args) throws InterruptedException {
		Weibo weibo = new Weibo();
		KeyMa aToken = new KeyMa();
		int size = aToken.getSize();
		for(int i = 0; i < size; i++){
			String access_token = aToken.getToken();
			weibo.setToken(access_token);
			Account am = new Account();
			try {
				RateLimitStatus json = am.getAccountRateLimitStatus();
				System.out.println(json.toString());
				
			} catch (WeiboException e) {
				e.printStackTrace();
			}
		}
	}

}
